describe('practice-1-9', function () {

    it("使用折半查找法查找整数m在数组中的位置", function () {
        var arr_number = [2,3,5,6,7,8,9];
        var res = binary_search(arr_number,5);
        expect(res).toBe(2);

        var arr_number_temp = [-3,4,7,9,13,45,67,89,108];
        var res_45 = binary_search(arr_number_temp,45);
        var res_89 = binary_search(arr_number_temp,89);
        var res_11 = binary_search(arr_number_temp,11);
        expect(res_45).toBe(5);
        expect(res_89).toBe(7);
        expect(res_11).toBe("Not be found");
    });
});